using System;
using System.Collections.Generic;
using System.Text;
using FluentNHibernate.Mapping;
using NH_Entity;

namespace NH_Map
{


    public class QHY_UserRoleMap : ClassMap<QHY_UserRole>
    {

        public QHY_UserRoleMap()
        {
            Table("QHY_UserRoles");
            LazyLoad();
            Id(x => x.ID).GeneratedBy.Identity().Column("ID");
            //Map(x => x.UserID).Column("UserID").Not.Nullable();
            //Map(x => x.RoleID).Column("RoleID").Not.Nullable();
            References(x => x.QHY_Users).Column("UserID");
            References(x => x.QHY_Roles).Column("RoleID");
            Map(x => x.Flag).Column("Flag");
        }
    }
}
